﻿#pragma once

#include <QObject>
#include "RamDB.h"
#include "TVarSet.h"

class QQmlEngine;
class QJSEngine;

class BackEnd: public QObject
{
Q_OBJECT
public:
	BackEnd(QObject* parent);
	~BackEnd();
	static QObject* Provider(QQmlEngine*, QJSEngine*);

public:

private:
	void Init();
	void InitMods();
	void BindSignal();
	void RegisterQmlType();
private:
	RamDB mDB;
	TVarSet mMods;
    static QObject* spInstance;
};

